package com.example.domoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by yls on 2018/11/5.
 */

public class LowReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String TAG = "LowReceiver";
        Log.e(TAG, "onReceive");

        Bundle bundle = getResultExtras(false);
        String name = bundle.getString("NAME");
        int age = bundle.getInt("AGE");
        Log.e(TAG, "上一个接收者的姓名 "+name  + " 年龄 "+age );
    }
}
